/**
 * Copyright 2009 University of  Washington
 * This code is released under the GPL version 3 - with a copy of the license included
 * @author Maya Hao Li
 *
 */
package seedpod.rdb;

/**
 * Package: EMS (Experiment Management System ) class: DatabaseParameters
 */

public class RdbConnectParameters implements Cloneable {

	protected String _driver;

	protected String _jdbcUrl;

	protected String _user;

	protected String _password;

	protected String _database;

	protected String _databaseLongName;

	protected String _version;

	public RdbConnectParameters(String driver, String url, String user, String pwd, String database) {
		_driver = driver;
		_jdbcUrl = url;
		_user = user;
		_password = pwd;
		_database = database;
	}

	/**
	 * Clone a DatabaseParameters object.
	 */
	public Object clone() {
		try {
			return super.clone();
		}
		catch (CloneNotSupportedException e) {
			throw new RuntimeException( "Internal error: " + e );
		}
	}

	public String getDriverName() {
		return _driver;
	}

	public String getJdbcUrl() {
		return _jdbcUrl;
	}

	public String getDbUser() {
		return _user;
	}

	public String getDbPassword() {
		return _password;
	}

	public String getDatabaseName() {
		return _database;
	}

	public String getDatabaseLongName() {
		return _databaseLongName;
	}

	public String getVersion() {
		return _version;
	}

}
